package com.xiaolin.designmode.singleton;

/**
 * @ClassName EnumSingleton
 * @Description 枚举类
 * @Detail 线程安全，推荐使用
 * @Author MyPC
 * @Date 2020/7/18
 * @Version 1.0
 */
public enum  EnumSingleton {
    INSTANCE;
    public void out(){
        System.out.println(INSTANCE);
    }
    public static EnumSingleton getInstance(){
        return INSTANCE;
    }
}
